package com.myproject.extend;

public class Son extends Parent {

    public Son() {
        super("tom");
        //super.setName("tom");

    }

    public static void main(String[] args) {
        Son son = new Son();
        son.sayHello();
        System.out.println(son.getName());

    }
}
